import request from '@/utils/request'
import { Params } from '@/types/home'

export function getStatistics(params: Params) {
  return request({
    url: '/individual/statistics',
    method: 'get',
    params
  })
}

export function getCommunityList() {
  return request({
    url: '/select-community',
    method: 'get',
  })
}

export function getCommunityChildList(params: string) {
  return request({
    url: `/select-merchants?community_id=${params}`,
    method: 'get',
  })
}

export function getEnvelopmentInfo(params: string) {
  return request({
    url: `/envelopmentInfo?community_id=${params}`,
    method: 'get',
  })
}

